package com.yupi.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mdd.model.entity.UserInterfaceInfo;

/**
* @author 21958
* @description 针对表【user_interface_info(用户调用接口关系)】的数据库操作Service
* @createDate 2023-07-18 17:22:18
*/
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo> {

    /**
     * 参数校验
     * @param userInterfaceInfo
     * @param add
     */
    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo, boolean add);

    /**
     * 调用次数+1
     * @param userId
     * @param interfaceId
     * @return
     */
    boolean invokeCount(long userId,long interfaceId);
}
